<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加科室</title>
</head>
<body>
<form name="addDepartment" method="post" th:action="@{/department/add}" th:object="${department}">
    <input type="hidden" id="id" name="id" th:value="${department?.id}">
    <div >
        <div >
            科室名称：
            <input type="text"  th:field="*{name}" placeholder="科室名称">
        </div>
    </div>

    <div >
        <div >
            科室简介：
            <input type="text"  th:field="*{intro}" placeholder="科室简介">
        </div>
        <div >
            科室人数：
            <input type="text" th:field="*{number}" placeholder="科室人数">
        </div>
    </div>
    <div >
        <div >
            所属医院：
            <select name="hospitalId" id="hospitalId">
                <option value="">--选择医院--</option>
                <option th:each="oo : ${hospitals}" th:value="${oo.id}" th:text="${oo.hospitalName}" th:selected="${hospital?.hospitalName}==${oo.hospitalName}">value</option>
            </select>
        </div>
    </div>

    <input type="submit" value="添加/修改" class="btn btn-success" >
</form>

</body>
</html>